#pragma once
// #include "..\\stdafx.h"
 #include "..\\LibDef.h"
namespace NS_GXX_FILE
{

class _DATOOL_LIB_API CMyCriticalSection
{
public:
	CMyCriticalSection();
	~CMyCriticalSection();

	void Lock();
	void Unlock();

private:
	CRITICAL_SECTION m_cs;
};

class CAutoLock
{
public:
	CAutoLock( CMyCriticalSection& cs );
	~CAutoLock();
private:
	CMyCriticalSection& m_cs;
};

}